<!--#include file="Config.asp" -->

<%
TrainId = int(Request.QueryString("TrainId"))
Conn.Execute("delete  from TrainTbl where TrainId = "& TrainId &" and PerId = "& session("AnyPIM_userID"))

Rs.Open "select * from TrainTbl where PerId = "& session("AnyPIM_userID") , Conn , 1 , 1
If Rs.Eof Then
	Conn.Execute("update Users set pxFlag = '0' where PerId = "& session("AnyPIM_userID"))
End If
Rs.Close
response.redirect "ChgPerInfo_5.asp"

%>
